package com.akcome.apollo.domain.enums;

/**
 * 结算方式
 * @author wn
 *
 */
public enum PayModeEnum {

	FPPS("FPPS", "FPPS");
	
	
	private String code;
	
	private String desc;
	
	private PayModeEnum(String code,String desc){
		this.code = code;
		this.desc = desc;
	}
	
	public PayModeEnum getByCode(String code){
		for (PayModeEnum enumObj : PayModeEnum.values()) {
            if (enumObj.getCode().equals(code)) {
                return enumObj;
            }
        }
        return null;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
}
